package com.woniuxy.topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/4 0004-下午 5:05
 */
@Component
public class TopicConsumer2 {
    @RabbitListener(queues = "topicQueueB")
    public void receive(String msg){
        System.out.println("消费者2接收到："+msg);
    }
}
